import { createEnumObject } from './index.js'

// 学历
const educationalEnumConfig = [
  {
    value: 0,
    label: '不限'
  },
  {
    value: 1,
    label: '中专及以下'
  },
  {
    value: 2,
    label: '高中'
  },
  {
    value: 3,
    label: '大专'
  },
  {
    value: 4,
    label: '本科'
  },
  {
    value: 5,
    label: '研究生/博士'
  }
]
const educationalEnum = createEnumObject(educationalEnumConfig)

// 收入要求
const incomeEnumConfig = [
  {
    value: 0,
    label: '不限'
  },
  {
    value: 1,
    label: '5000-8000'
  },
  {
    value: 2,
    label: '8000-12000'
  },
  {
    value: 3,
    label: '12000-20000'
  },
  {
    value: 4,
    label: '20000-30000'
  },
  {
    value: 5,
    label: '30000以上'
  }
]
const incomeEnum = createEnumObject(incomeEnumConfig)

// 婚姻要求
const marriageEnumConfig = [
  {
    value: 0,
    label: '不限'
  },
  {
    value: 1,
    label: '未婚'
  },
  {
    value: 2,
    label: '离婚未育'
  },
  {
    value: 3,
    label: '离婚已育'
  }
]
const marriageEnum = createEnumObject(marriageEnumConfig)

// 房产要求
const houseEnumConfig = [
  {
    value: 0,
    label: '不限'
  },
  {
    value: 1,
    label: '已购房'
  }
]
const houseEnum = createEnumObject(houseEnumConfig)

// 房产要求
const carEnumConfig = [
  {
    value: 0,
    label: '不限'
  },
  {
    value: 1,
    label: '已购车/近期购车'
  }
]
const carEnum = createEnumObject(carEnumConfig)

// 消息相关页面
const msgPageEnumConfig = [
  {
    label: '谁看过我',
    value: 'look_my'
  },
  {
    label: '收藏我的',
    value: 'collect_my'
  },
  {
    label: '解锁我的',
    value: 'contact_my'
  },
  {
    label: '我解锁的',
    value: 'my_contact'
  },
  {
    label: '我收藏的',
    value: 'my_collect'
  }
]

const msgPageEnum = createEnumObject(msgPageEnumConfig)

export {
  educationalEnum,
  incomeEnum,
  marriageEnum,
  houseEnum,
  carEnum,
  msgPageEnum
}
